import http from '@http/http'

export const _loadColleges = () => http.GET('/api/leader/loadColleges')
export const _loadMajors = data => http.GET('/api/leader/loadMajors' + '?CollegeID=' + data)
export const _loadClasses = data => http.GET('/api/leader/loadClasses' + '?MajorID=' + data)
export const _loadAreas = () => http.GET('/api/leader/loadAreas')
export const _loadBuildings = data => http.GET('/api/leader/loadBuildings' + '?AreaID=' + data)
export const _loadRooms = data => http.GET('/api/leader/loadRooms' + '?BuildingID=' + data)
export const _batchCheckout = data => http.POST('/api/leader/batchCheckout', data)
export const _searchStudentByAll = data => http.POST('/api/leader/searchStudentByAll', data)
export const _searchStudentByCollegeIDMajorIDClassID = DOT => http.POST('/api/leader/searchStudentByCollegeIDMajorIDClassID', DOT)
export const _batchAllocationWithNation = OBJ => http.POST('/api/leader/batchAllocationWithNation', OBJ)
export const _batchExchange = OBJ => http.POST('/api/leader/batchExchange', OBJ)
export const _batchAllocationWithBirthplace = OBJ => http.POST('/api/leader/batchAllocationWithBirthplace', OBJ)
export const selectByCollege = dot => http.POST('/api/leader/selectByCollege', dot)
export const selectByMajor = dot => http.POST('/api/leader/selectByMajor', dot)
export const selectByClass = dot => http.POST('/api/leader/selectByClass', dot)
export const selectByArea = dot => http.POST('/api/leader/selectByArea', dot)
export const selectByBuilding = dot => http.POST('/api/leader/selectByBuilding', dot)
export const selectByRoom = dot => http.POST('/api/leader/selectByRoom', dot)
// export const _batchAllocationWithNation = dot => http.POST('/api/leader/batchAllocationWithNation', dot)
// export const _batchAllocationWithBirthplace = dot => http.POST('/api/leader/batchAllocationWithBirthplace', dot)
// export const _batchCheckout = dot => http.POST('/api/leader/batchCheckout', dot)
// export const _batchExchange = dot => http.POST('/api/leader/batchExchange', dot)
// export const _loadCheckin = dot => http.GET('/api/leader/loadCheckin', dot)
// export const _loadCheckout = dot => http.GET('/api/leader/loadCheckout', dot)
export const selectDormitoryScore = dot => http.POST('/api/leader/selectDormitoryScore', dot)

export const selectAllocationAdjust = data => http.POST('/api/leader/selectAllocationAdjust', data)

export const getHygiene = data => http.POST('/api/leader/getHygiene', data)

export const getIndiscipline = data => http.POST('/api/leader/getIndiscipline', data)

export const getRepair = data => http.POST('/api/leader/getRepair', data)
export const getAllAdjustApplication = data => http.POST('/api/leader/getAllAdjustApplication', data)
export const getBuildingsByGender = data => http.POST('/api/leader/getBuildingsByGender', data)
export const updateAdjustByLeader = data => http.POST('/api/leader/updateAdjustByLeader', data)
export const approveAdjustByLeader = data => http.POST('/api/leader/approveAdjustByLeader', data)
export const getCheckOutApplication = data => http.POST('/api/leader/getCheckOutApplication', data)
export const UpdateCheckOutApplication = data => http.POST('/api/leader/UpdateCheckOutApplication', data)
export const getIndisciplineAudit = data => http.POST('/api/leader/getIndisciplineAudit', data)
export const updateIndisciplineAudit = data => http.POST('/api/leader/updateIndisciplineAudit', data)
